import request from '@/utils/request'

// 查询特色产品列表
export function listFeatured(query) {
  return request({
    url: '/system/featured/list',
    method: 'get',
    params: query
  })
}

// 查询特色产品详细
export function getFeatured(id) {
  return request({
    url: '/system/featured/' + id,
    method: 'get'
  })
}

// 新增特色产品
export function addFeatured(data) {
  return request({
    url: '/system/featured',
    method: 'post',
    data: data
  })
}

// 修改特色产品
export function updateFeatured(data) {
  return request({
    url: '/system/featured',
    method: 'put',
    data: data
  })
}

// 删除特色产品
export function delFeatured(id) {
  return request({
    url: '/system/featured/' + id,
    method: 'delete'
  })
}
